package com.appheader.rongmaphone.utils;

import android.util.Log;


/**
 * Logcat工具类
 * @author alaowan
 *
 */
public class LogUtil {
	private static final boolean isDebug = true;//BuildConfig.DEBUG;
	public static void error(String tag, Throwable e) {
		if (isDebug){
//			Log.e(tag, ExceptionUtils.getStackTrace(e));
		}

	}

	public static void error(String tag, String errorMsg) {
		if (isDebug){
			if(errorMsg == null) return;
			Log.e(tag, errorMsg);
		}

	}
	
	public static void info(String tag, String message) {
		if (isDebug){
			if(message == null) return;
			Log.i(tag, message);
		}

	}
	
	public static void debug(String tag, String message) {
		if (isDebug){
			if(message == null) return;
			Log.d(tag, message);
		}

	}
	public static void e(String tag, String errorMsg) {
		if (isDebug){
			if(errorMsg == null) return;
			Log.e(tag, errorMsg);
		}

	}
	public static void i(String tag, String message) {
		if (isDebug){
			if(message == null) return;
			Log.i(tag, message);
		}

	}
	public static void d(String tag, String message) {
		if (isDebug){
			if(message == null) return;
			Log.d(tag, message);
		}

	}


}
